<%@page import="cn.sbgs.www.common.Constant"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML>
<html>
<style>
    .information .text {
        overflow: hidden;
        padding-bottom: 10px;
        border-bottom: dashed 1px #ccc;
    }
    
    .information .text span {
        display: block;
        line-height: 24px;
    }
    
    .information .text a {
        padding: 5px 10px;
    }

</style>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>青少年书法-${activity.activitytitle}</title>
    <link href="<%=request.getContextPath()%>/css/global.css" rel="stylesheet" type="text/css">
    <link href="<%=request.getContextPath()%>/css/contect.css" rel="stylesheet" type="text/css">
    <link href="<%=request.getContextPath()%>/bt/css/bootstrap.min.css" rel="stylesheet" />
    <script type="text/javascript" src="<%=request.getContextPath()%>/bt/js/bootstrap.min.js"></script>
</head>

<body>
    <!--头部开始-->
    <div class="bannercon">
        <div class="banner">
            <img src="<%=request.getContextPath()%>/image/logo.png">
        </div>
    </div>
    <!--正文开始-->
    <div class="maincon">
        <div class="main">
            <div class="navcon">
                <ul>
                    <li>
                        <a href="/" >首页</a>
                    </li>
                    <li>
                        <a href="<%=request.getContextPath()%>/client/news/getActivitylist.do" class="currentA">活动</a>
                    </li>
                    <li>
                        <a href="<%=request.getContextPath()%>/client/news/getHdlist.do" >互动</a>
                    </li>
                    <li>
                        <a href="<%=request.getContextPath()%>/client/news/getSchoolList.do">名校</a>
                    </li>
                    <li>
                        <a href="<%=request.getContextPath()%>/client/news/mentorship.do">师友</a>
                    </li>
                    <li>
                        <a href="<%=request.getContextPath()%>/client/news/getMagazineList.do">杂志</a>
                    </li>
                </ul>
            </div>
            <div class="section1">
                <h5><a href="/">首页</a>&gt;&gt;<a href="<%=request.getContextPath()%>/client/news/getActivitylist.do">活动列表</a></h5>
                <div class="contain clear">
                    <div class="conleft left">
                        <a href="#" class="userpic"><img src="<%=Constant.Url1158 %>${activity.puberlogo}"></a>
						<span>${activity.pubernick }</span>
                    </div>
                    <div class="conright left">
                        <div class="information">
                            <div class="text">
                                <p class="left" style="width: 100%">
                                <jsp:useBean id="now" class="java.util.Date" />   
                                		<strong style="font-size:20px;">
                                			${activity.activitytitle}
                               			</strong>
                                		<strong style="color: red">（${activity.startDate } - ${activity.endDate}）</strong>
	                              		<c:choose>
	                              			<c:when test="${activity.state == 1}"><span style="color: green;display:inline;float:right;line-height: 40px;margin-right: 20px;">进行中...</span></c:when>
                                            <c:when test="${activity.state == 2}"><span style="color: red;display:inline;float:right;line-height: 40px;margin-right: 20px;">已结束...</span></c:when>
	                              			<c:otherwise><span style="color: #003300;display:inline;float:right;line-height: 40px;margin-right: 20px;">未开始</span></c:otherwise>
	                              		</c:choose>
										<span>${activity.activityintro }</span>

								</p>
                        
                            </div>
                            <p><a href="#" onclick="javascripts:window.open('<%=request.getContextPath()%>${ activity.activitypic}')"><img src="<%=Constant.Url1158 %>${ activity.activitypic}"></a></p>
                            <span style="color: red">共有${activity.workCount}作品参赛，请到手机APP查看，给你喜欢的作品点赞吧</span>
                            <p class="time clear"><span class="left">${ activity.activitytime}</span>
                            <span class="right"><a>赞（<i>${ activity.activityOpteCountBean.oGood_count}</i>）</a><a>评价（<i>${ activity.activityOpteCountBean.oComment_count}</i>）</a><a>收藏（<i>${ activity.activityOpteCountBean.oFavorite_count}</i>）</a></span>
                                              <!-- JiaThis Button BEGIN -->
									<div class="jiathis_style" style="float: right;">
										<a class="jiathis_button_qzone"></a>
										<a class="jiathis_button_tsina"></a>
										<a class="jiathis_button_tqq"></a>
										<a class="jiathis_button_weixin"></a>
										<a class="jiathis_button_renren"></a>
										<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
										<a class="jiathis_counter_style"></a>
									</div>
								<!-- JiaThis Button END --> 
                            </p>
                        </div>
                     <c:if test="${fn:length(activity.activityComments)==0}">暂无数据</c:if>
			        <c:if test="${fn:length(activity.activityComments)>0}">
					<c:forEach items="${activity.activityComments}" var="comment">
                        <div class="sayscon">
                            <div class="says1">
                                <div>
                                    <p>
                                        <a href="#" class="username">${comment.commentsPersonName }</a>:${comment.commentsContent }
                                      
                                        <span style="float:right;margin-right:30px;">${comment.commentsTime }</span>
									 </p>
                                </div>
                            </div>
                        </div>
                         </c:forEach>
	             </c:if>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--主体结束-->
    <!--footer-->
    <div class="footercon">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12" style="background-color: #002a80;height: 250px">
                    <div class="section1">
                        <div class="row" style="width: 1000px;margin: 0 auto;line-height: 40px;">
                            <div class="col-md-4">
                                <div class="row">
                                    <div class="col-md-12">
                                        <strong style="font-size: 20px;color: white;font-family:  '新宋体'">更多精彩内容</strong>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-6">
                                        <div id="downloadImg"><img src="<%=Constant.Url1158%>${footer0.col2}"></div>
                                    </div>
                                    <div class="col-md-6">
                                        <div class="row" style="position: absolute;top: 12px">
                                            <div class="col-md-12">
                                                <input type="button" style="filter: alpha(opacity=45); opacity:0.45; width: 140px;height: 40px">
                                                <strong style="position:absolute;left: 25px;top: 2px;font-size: 17px;font-weight:bolder;color: white;font-family:  '新宋体'">Android版下载</strong>
                                            </div>
                                        </div>
                                        <div class="row" style="position: absolute;top: 80px">
                                            <div class="col-md-12" >
                                                <input type="button" style="filter: alpha(opacity=45); opacity:0.45; width: 140px;height: 40px">
                                                <strong style="position:absolute;left: 25px;top: 2px;font-size: 17px;font-weight:bolder;color: white;font-family:  '新宋体'">iPhone版下载</strong>
                                            </div>

                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <strong style="font-size: medium;color: white">扫描二维码,下载手机客户端</strong>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="row">
                                    <div class="col-md-12">
                                        <strong style="font-size: 20px;color: white;font-family:  '新宋体'">微信公众号 ： </strong><strong style="font-size: 20px;color:orange;font-family:  '新宋体'">青少年书法</strong>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <div id="weixinImg"><img src="<%=Constant.Url1158%>${footer0.col3}"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-4">
                                <div class="row">
                                    <div class="col-md-12">
                                        <div id="tellus" style="position:absolute;top:20px;font-size: 15px;color:darkgray;line-height: 25px;font-family:  '新宋体'">
                                            ${footer1.content}
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <strong style="position: absolute;top: 180px;font-size: 10px;color:#2d6987;font-family:  '新宋体'">青少年书法&nbsp;版权所有2013-2013&nbsp;ICP备8888888号</strong>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</body>
 <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
</html>
